package com.woniu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.entity.AllUser;
import com.woniu.entity.dto.scoreLevelDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserStatisticsMapper extends BaseMapper<AllUser> {
    //统计最近七天新增用户数，按天分组
    List<Map<String, Object>> countNewUserByDay();
    //统计最近七天活跃用户数，按天分组
    List<Map<String, Object>> countActiveUserByDay();
    //查询考试等级人数图标
    List<scoreLevelDTO> getScoreLevel(@Param("contestId") String contestId);
}
